'''
member = input("是否为会员，请输入是或否：")
money = int(input("购买了多少元："))
if member == "是":
    if money >= 200:
        print(f"你需要支付{money*0.8}元")
    elif money >= 100:
        print(f"你需要支付{money*0.9}元")
    else:
        print(f"你需要支付{money}元")
else:
    print(f"你需要支付{money}元")

'''
'''
# 银行取款模拟
money = 99.5

take_money = int(input("请输入你的取款金额："))

if take_money > money:
    print("你没那么多钱！滚蛋！")
else:
    print(f"取出{take_money}元.")
    money -= take_money
    print(f"你还剩余{money}元")
'''
'''

# 随机数实现2石头剪刀布
# 模块导入
import random

computer = random.randint(1, 3)
print(f"computer = {computer}")
number = 0
man = input("你要出什么：")
if man == "石头":
    number = 1
elif man == "剪刀":
    number = 2
elif man == "布":
    number = 3
else:
    print("error!")

if computer == 1:
    c_man = "石头"
elif computer == 2:
    c_man = "剪刀"
else:
    c_man = "布"

if c_man == man:
    print(f"你们都是{man}, 平局")

if computer == 2:
    print(f"1电脑出的是{c_man}!而你是{man}, 你输了!") if man < c_man else print(f"电脑出的是{c_man}!而你是{man}!你赢了")
elif computer > number:
    print(f"2电脑出的是{c_man}!而你是{man}, 你输了!")
else:
    print(f"3电脑出的是{c_man}!而你是{man}!你赢了")

'''
# 循环
# while循环
'''


i = 0

while i < 10:
    print(f"i = {i}")
    i += 1

# 找出1-100的偶数

number = 2
while number <= 100:
    print(f"{number}")
    number += 2

# 1-100累加和
number1 = 1
sum = 0
while number1 <= 100:
    sum += number1
    print(f"{sum}")
    number1 += 1
    
'''

# 鸡蛋难题
egg = 2
mode = 0

while not mode:
    if egg % 2 == 1 and egg % 3 == 1 and egg % 4 == 1:
        mode = 1
    else:
        egg += 1
print(f"egg = {egg}")

